import request from "@/utils/request";
const URL = '/teacher'

/***
 * 获取个人信息
 * @returns {*}
 */
export function getTeacherInfo(){
    return request({
        method:'get',
        url: URL,
    })
}


/***
 * 获取学生列表
 * @returns {*}
 */
export function getStudents(){
    return request({
        method:'get',
        url: URL+'/students'
    })
}
/***
 * 修改个人信息
 * @param data
 * @returns {*}
 */
export function changeTeacherInfo(data){
    return request({
        method:'put',
        url: URL+'',
        data:data
    })
}
